﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerViews/Manager.Master" AutoEventWireup="true" CodeBehind="AddProductCategory.aspx.cs" Inherits="BestBuy.ManagerViews.AddProductCategory" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div class="add-pro-cate">
        <br />
        
        <table>
            <tr>
                <td colspan="2">
                    <uc:MessagePanel ID="AddProductMessage" runat="server" />
                </td>
            </tr>
          <tr>
            <td colspan="2">
                <h2> Add Product Category</h2>
            </td>
          </tr>
          <tr>
            <td>Name : </td>
            <td> 
                <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtName" ErrorMessage="Please enter name product">*</asp:RequiredFieldValidator>
              </td>
          </tr>
          <tr>
            <td>Parent</td>
            <td> 
                <asp:DropDownList ID="cbParent" runat="server" Width="250px" 
                    AppendDataBoundItems="True">
                    <asp:ListItem Value="" Text="---Select Parent---"/>
                </asp:DropDownList>
              </td>
          </tr>
          <tr>
            <td>Description</td>
            <td> 
                <asp:TextBox ID="txtDescription" runat="server" Height="97px" 
                    TextMode="MultiLine" Width="250px"></asp:TextBox>
              </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="btn btn-primary" onclick="btnAdd_Click" 
                    Width="70px" />
&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnClear" runat="server" Text="Clear" CssClass="btn btn-primary"
                    onclick="btnClear_Click" Width="70px" />
              </td>
          </tr>
        </table>

        <br />
    </div>
</asp:Content>
